import request from '@/utils/request'

// 查询停车订单退款列表
export function listParkingOrderRefund(query) {
  return request({
    url: '/parking/parkingOrderRefund/list',
    method: 'get',
    params: query
  })
}

// 查询停车订单退款详细
export function getParkingOrderRefund(id) {
  return request({
    url: '/parking/parkingOrderRefund/' + id,
    method: 'get'
  })
}

// 新增停车订单退款
export function addParkingOrderRefund(data) {
  return request({
    url: '/parking/parkingOrderRefund',
    method: 'post',
    data: data
  })
}

// 修改停车订单退款
export function updateParkingOrderRefund(data) {
  return request({
    url: '/parking/parkingOrderRefund',
    method: 'put',
    data: data
  })
}

// 删除停车订单退款
export function delParkingOrderRefund(id) {
  return request({
    url: '/parking/parkingOrderRefund/' + id,
    method: 'delete'
  })
}
